package com.yxh.sse.action;

import java.util.Set;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.yxh.sse.po.SysUserInfor;
import com.yxh.sse.po.UserStudent;


public class ExamAction extends ActionSupport{
	
	private String action;

	public String getAction() {
		
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}
	
	public String execute(){
		
		String action=(String)ServletActionContext.getRequest().getParameter("action");
	    if(action.equalsIgnoreCase("showInfor")){
	    	showInfor();
	    }
		return "abc";
	}

	private void showInfor() {
		SysUserInfor userInfor=(SysUserInfor)ActionContext.getContext().getSession().get("userInfo");
		UserStudent userStudent = userInfor.getUserStudent();
		
	}

}
